home *** CD-ROM | disk | FTP | other *** search
- #!/bin/csh
- ##########################################################################
- ## This is a generic BUILD image script. Copy this file and name it
- ## something like BUILD_PRODNAME (eg. BUILD_OASISIII).
- ##
- ## 10/22/93 created: Ivan hajadi@csd.sgi.com
- ##
- ## To execute this script you need to have created the spec file for the
- ## product and your machine has /usr/sbin/gendist program.
- ## You can obtain gendist by:
- ## 1. rcp-ing from your colleague's machine.
- ## 2. inst-ing noship.sw.buildtools from
- ## dist.wpd:/all_parts/released/4.0.5F/noship
- ## dist.wpd:/all_parts/released/5.0/noship
- ##
- ## This script assume that your spec file is called PRODNAME.spec, and
- ## the dist image will be put in directory ./dist.PRODNAME.
- ##
- ## If you use the above assumptions, then the only things that need to be
- ## changed for your specific image are these 2 variables:
-
- setenv PRODNAME xcontact # Put your product name here (eg. oasisIII)
-
- setenv TOPSRC `pwd` # Put your top level dir here. By default is curr dir.
- # (eg. setenv TOPSRC /d/projects/kr)
- # Typically, top level dir is located under ~/projects.
- # This script will cd there.
-
- ## You can optionally set the following too:
-
- setenv DISTDIR dist # Destination directory for image.
-
- #echo -n "Enter Alpha number: "
- setenv ALPHA 108 # Usually used by spec file (eg. setenv ALPHA 100).
-
- setenv RELEASE 0.98 # Usually used by spec file (eg. setenv RELEASE 1.0).
-
- setenv ROOT / # Change these if you know what you're doing.
- setenv INSTALL install
-
- ## That's all. Do not change anything below this line, unless you are
- ## a geek like me!!!
- ##########################################################################
-
-
- date
- echo ""
- echo ">>>>>>>>>>>>>> Building Image ... ALPHA ${ALPHA}..."
- echo ""
- echo ""
- setenv SRC ${TOPSRC}
- setenv RAWIDB ${SRC}/${PRODNAME}.idb
- if ( ${DISTDIR} == "" ) then
- setenv DISTDIR ${SRC}/dist
- endif
-
- cd ${SRC}
- if ( ! -d ${DISTDIR} ) then
- mkdir ${DISTDIR}
- endif
-
-
- /bin/touch ${DISTDIR}/nothing # we don't want to see that error msg from rm
- # when DISTDIR is empty.
- /bin/rm ${DISTDIR}/*
- make ${INSTALL}
-
- /bin/touch idb3
- /bin/rm idb3
- sort -u +4 ${RAWIDB} > idb3
-
- gendist -v -dist ${DISTDIR} -sbase ${SRC} -idb idb3 -spec spec.${PRODNAME}
-
- /bin/rm idb3
- /bin/rm ${RAWIDB}
-
- echo ""
- echo "Done."
- echo ""
- date
-